package com.dayuanit.dy17.library.service.impl;

import com.dayuanit.dy17.library.entity.Press;
import com.dayuanit.dy17.library.mapper.PressMapper;
import com.dayuanit.dy17.library.service.IPressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PressServiceImpl implements IPressService {

    @Autowired
    private PressMapper pressMapper;

    public PressServiceImpl() {
        System.out.println("-------PressServiceImpl------");
    }

    @Override
    public Press queryPress(String pressName) {
        Press press = pressMapper.getPressByName(pressName);
        return press;
    }
}
